package main


import (
	"blueprint-crypto/cmd"
	goflag "flag"
	"fmt"
	"github.com/spf13/pflag"
	"math/rand"
	"os"
	"time"
)
func main() {
	timeLocal, _ := time.LoadLocation("Asia/ShangHai")
	time.Local = timeLocal
	rand.Seed(time.Now().UTC().UnixNano())
	command := cmd.NewDefaultCommand()
	pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
	if err := command.Execute(); err != nil {
		fmt.Fprintf(os.Stderr, "%v\n", err)
		os.Exit(1)
	}
}